import { enumToMap } from "@/utils/util";
import {
	ClassState_Enum,
	RegisterMethods_Enum,
	StudentClassStatus_Enum,
	ClassStatus_Enum,
	Semester_Emun,
	PaymentStatus_Emun,
	InvoiceStatus_Emun,
	YesOrNo_Enum,
	TransactionSource_Enum,
} from "@/enums/common";

const ClassState_Map = enumToMap(ClassState_Enum);

export const formColumn = [
	{
		component: "el-input",
		label: "班级名称",
		prop: "className",
		value: "",
	},
	{
		component: "el-input",
		label: "授课老师",
		prop: "teacher",
		value: "",
	},
	// {
	// 	component: "el-input",
	// 	label: "教室",
	// 	prop: "room",
	// },
	// {
	// 	component: "el-select",
	// 	label: "课程类型",
	// 	prop: "courseType",
	// 	options: [],
	// },
	// todo
	// {
	// 	hide: true,
	// 	component: "el-input",
	// 	label: "授课地点",
	// 	prop: "classType",
	// 	value: "1",
	// 	options: "1",
	// },
];

export const column = [
	{
		label: "班别名称",
		prop: "className",
		width: "150",
	},
	{
		label: "授课地点",
		prop: "schoolName",
		width: "150",
	},
	{
		label: "授课老师",
		prop: "teacher",
		width: "80",
	},
	{
		label: "助教",
		prop: "assistant",
		width: "100",
	},
	{
		label: "已招人数",
		prop: "realQuantity",
		width: "80",
	},
	{
		label: "满班人数",
		prop: "population",
		width: "120",
	},
	{
		label: "课次",
		prop: "classTimes",
		width: "120",
	},
	{
		label: "教室",
		prop: "roomName",
		width: "150",
	},
	{
		label: "工具",
		prop: "tool",
		width: "150",
	},
	{
		label: "开班日期",
		prop: "openingTime",
		width: "150",
	},
	{
		label: "结课日期",
		prop: "classEnding",
		width: "220",
	},
];
